package com.weiweiqin.service.impl;

import com.weiweiqin.dao.PrizeDao;
import com.weiweiqin.model.Prize;
import com.weiweiqin.service.PrizeService;
import com.weiweiqin.vo.common.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PrizeServiceImpl implements PrizeService {
	@Autowired
	private PrizeDao prizeDao;

	public List<Prize> pageList(Page page, Map<String, Object> conditions) {
		return prizeDao.pageList(page, conditions);
	}

	public int totalCount(Map<String, Object> conditions) {
		return prizeDao.totalCount(conditions);
	}

	public void save(Prize prize) {
		prizeDao.insert(prize);
		
	}

	public void update(Prize prize) {
		prizeDao.update(prize);
		
	}

	public Prize get(int id) {
		return prizeDao.get(id);
	}

	


}